<?php
echo date(format: "北京时间: Y年m月d日 H:i:s.v e\n");
$d=new DateTime();
$d=new DateTime(datetime: "2000-10-1 12:34:56");
$d=new DateTime(datetime: "2000-10-1");
$d=new DateTime(datetime: "2000-10");
$d=new DateTime(datetime: "20001001 123456");
$d=new DateTime(datetime: "123456");
$d=new DateTime(datetime: "12:34:56");
$d=new DateTime(datetime: "12:34");
$d=new DateTime(datetime: "2000/10/01 12:34:56");
print_r($d);
$d=["name"=>"张三","age"=>18];
echo $d->format(format: "北京时间: Y年m月d日 H:i:s.v e\n");